package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_LogisticsServiceProvider", catalog="Id")
public class TccLogisticsServiceProvider extends BaseEntity<TccLogisticsServiceProvider> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ProviderBid", nameJava="providerBid", typeDataBase="varchar")
	private String providerBid;
	@YsField(nameDataBase="Abbreviation", nameJava="abbreviation", typeDataBase="varchar")
	private String abbreviation;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="TaxNumber", nameJava="taxNumber", typeDataBase="varchar")
	private String taxNumber;
	@YsField(nameDataBase="PhoneNumber", nameJava="phoneNumber", typeDataBase="varchar")
	private String phoneNumber;
	@YsField(nameDataBase="Address", nameJava="address", typeDataBase="varchar")
	private String address;
	@YsField(nameDataBase="Factno", nameJava="factno", typeDataBase="varchar")
	private String factno;
	@YsField(nameDataBase="Supno", nameJava="supno", typeDataBase="varchar")
	private String supno;
	@YsField(nameDataBase="Suppass", nameJava="suppass", typeDataBase="varchar")
	private String suppass;
	@YsField(nameDataBase="Appkey", nameJava="appkey", typeDataBase="varchar")
	private String appkey;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccLogisticsServiceProvider setId(Long id) {
		this.id = id;
		return this;
	}
	public String getProviderBid() {
		return providerBid;
	}
	public TccLogisticsServiceProvider setProviderBid(String providerBid) {
		this.providerBid = providerBid;
		return this;
	}
	public String getAbbreviation() {
		return abbreviation;
	}
	public TccLogisticsServiceProvider setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
		return this;
	}
	public String getName() {
		return name;
	}
	public TccLogisticsServiceProvider setName(String name) {
		this.name = name;
		return this;
	}
	public String getTaxNumber() {
		return taxNumber;
	}
	public TccLogisticsServiceProvider setTaxNumber(String taxNumber) {
		this.taxNumber = taxNumber;
		return this;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public TccLogisticsServiceProvider setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
		return this;
	}
	public String getAddress() {
		return address;
	}
	public TccLogisticsServiceProvider setAddress(String address) {
		this.address = address;
		return this;
	}
	public String getFactno() {
		return factno;
	}
	public TccLogisticsServiceProvider setFactno(String factno) {
		this.factno = factno;
		return this;
	}
	public String getSupno() {
		return supno;
	}
	public TccLogisticsServiceProvider setSupno(String supno) {
		this.supno = supno;
		return this;
	}
	public String getSuppass() {
		return suppass;
	}
	public TccLogisticsServiceProvider setSuppass(String suppass) {
		this.suppass = suppass;
		return this;
	}
	public String getAppkey() {
		return appkey;
	}
	public TccLogisticsServiceProvider setAppkey(String appkey) {
		this.appkey = appkey;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccLogisticsServiceProvider setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccLogisticsServiceProvider setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccLogisticsServiceProvider setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccLogisticsServiceProvider tccLogisticsServiceProvider(
		String providerBid,
		String abbreviation,
		String name,
		String taxNumber,
		String phoneNumber,
		String address,
		String factno,
		String supno,
		String suppass,
		String appkey,
		Integer status
			) {
		TccLogisticsServiceProvider entity = new TccLogisticsServiceProvider();
		entity.setProviderBid(providerBid);
		entity.setAbbreviation(abbreviation);
		entity.setName(name);
		entity.setTaxNumber(taxNumber);
		entity.setPhoneNumber(phoneNumber);
		entity.setAddress(address);
		entity.setFactno(factno);
		entity.setSupno(supno);
		entity.setSuppass(suppass);
		entity.setAppkey(appkey);
		entity.setStatus(status);
		return entity;
	}
}